package com.wang.aliyun.service;

import com.wang.aliyun.mapper.FileMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: wang
 * @date: 2021/7/30 22:07
 * @description:
 */
@Service
public class FileService {

    @Resource
    private FileMapper fileMapper;


    public int saveFileName(String name) {
        return fileMapper.insertFileName(name);
    }


    public List<String> queryAllFileName() {
        return fileMapper.selectAllFileName();
    }
}
